import java.io.*;
import java.util.StringTokenizer;

public class Test {
    public static void main(String[] args) throws IOException {
        // 1 实例化
        // -快读
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        // -读取单个元素
        StringTokenizer st;
        // -快写
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

        // 2 输出测试
        // -接收换行字符串 hello /n world
        String s1 = br.readLine();
        String s2 = br.readLine();
        bw.write("" + s1 + '\n');
        bw.write("" + s2 + '\n');
        // -接收整型数据 1 2 3 4 5 6
        int[] arr = new int[5];
        st = new StringTokenizer(br.readLine());
        for(int i = 0; i < 5; i++) {
            arr[i] = Integer.parseInt(st.nextToken());
        }
        for(int e: arr) {
            bw.write("" + e + " ");
        }

        // 3 刷新缓存区
        bw.flush();
        br.close();
        bw.close();
    }
}
